package com.example.lotterysystem.controller.param;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created with IntelliJ IDEA.
 * Description: 登录请求参数
 * User: Spider-Man
 * Date: 2025-09-10
 * Time: 14:23
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UserPasswordLoginParam extends UserLoginParam{
    /**
     * 可以是手机号码或者邮箱
     */
    @NotBlank(message = "手机号码或者邮箱不能为空!")
    private String loginName;
    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空!")
    private String password;
}
